﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<EnterpriseManagement.Models.SearchProjectModel>" %>


<style type="text/css">
input[type="text"] 
{
	margin-left:auto;
    width: 100px;
    border: 1px solid #CCC;
}
td
{
font-size:8px;
}
</style>


<div id="searchproject">
    <h1>查看项目信息</h1>
     <br /><br />
   <% using (Ajax.BeginForm("SearchProject", new AjaxOptions { UpdateTargetId = "searchProjectResults" }))
      {%>
        <%: Html.ValidationSummary(true) %>

     <table  id="tablenoframe">
            <tr>
            <td class="label"><%: Html.LabelFor(model => model.ProjectName) %></td>
            <td class="editor-field">
                <%:  Html.DropDownList("ProjectName", (SelectList)ViewData["ProjectName"], "", new { style = "width:100px" })%>
                <%: Html.ValidationMessageFor(model => model.ProjectName)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.ProjectType)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.ProjectType)%>
                <%: Html.ValidationMessageFor(model => model.ProjectType)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.Importance)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Importance)%>
                <%: Html.ValidationMessageFor(model => model.Importance)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.MainTechnology)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.MainTechnology)%>
                <%: Html.ValidationMessageFor(model => model.MainTechnology)%>
            </td>
            </tr>

            <tr>
            <td class="label"><%: Html.LabelFor(model => model.BusinessField)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.BusinessField)%>
                <%: Html.ValidationMessageFor(model => model.BusinessField)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.ClientName)%></td>
            <td class="editor-field">
                 <%:  Html.DropDownList("ClientName", (SelectList)ViewData["ClientName"], "", new { style = "width:100px" })%>
                <%: Html.ValidationMessageFor(model => model.ClientName)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.Department)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Department)%>
                <%: Html.ValidationMessageFor(model => model.Department)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.ManagerId)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.ManagerId)%>
                <%: Html.ValidationMessageFor(model => model.ManagerId)%>
            </td>
            </tr>

            <tr>
             <td class="label"><%: Html.LabelFor (model=>model.ProjectStatus) %></td>
            <td class="editor-field">
             <%: Html.DropDownList("ProjectStatus", (SelectList)ViewData["ProjectStatus"], "", new { style = "width:100px" })%>
            </td>
            <td></td><td></td>
                <td></td><td></td><td><input type="submit" value="查找" style ="margin-left:20px;" /></td>
              </tr>
            </table>
            

     
    <% } %>

    </div>
    <br /><br />
    <div id="searchProjectResults">
    
    </div>